let num = 0
export const getRouterData = (url, method = 'POST', data = []) => {
	uni.showLoading({
		title: "加载中"
	})
	num++
	return new Promise((resolve, reject) => {
		uni.request({
			url: "https://fc-mp-05839e2c-5f5c-482d-a5f7-c4148e5fd7db.next.bspapp.com/" + url,
			method: method,
			data: data,
			success(res) {
				resolve(res)
			},
			complete() {
				num--
				if (num == 0) {
					uni.hideLoading()
				}
			}
		})
	})
}